import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/payinfoManage/payinfo/search`,
}

export const apiApproveUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/payinfoManage/payinfo/approveSearch`,
}


// 历史付款记录修改
export function payinfoUpdate(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/payinfoManage/payinfo/update`,
    method: 'post',
    data: data,
  })
}


// 历史付款记录删除
export function payinfoDelete(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/payinfoManage/payinfo/delete`,
    method: 'post',
    data: data,
  })
}

// 历史付款记录审核通过
export function payinfoApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/payinfoManage/payinfo/approve`,
    method: 'post',
    data: data,
  })
}

// 历史付款记录审核拒绝
export function payinfoReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/payinfoManage/payinfo/reject`,
    method: 'post',
    data: data,
  })
}



